<!--
 * @Author: your name
 * @Date: 2021-12-16 09:19:55
 * @LastEditTime: 2021-12-16 16:04:37
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day8vue3\my-app\src\App.vue
-->
<template>
  <div>
    <img alt="Vue logo" src="./assets/logo.png">
    <!-- <Setup msg="Welcome to Your Vue.js App"/>
    <Reactive/> -->
    <!-- <Provider msg="Welcome to Your Vue.js App"/> -->
    <!-- <Computed msg="Welcome to Your Vue.js App"/> -->
    <WatchEffects msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// import Setup from './components/Setup.vue'
// import Reactive from "./components/Reactive.vue"
// import Provider from "./components/Provider.vue"
// import Computed from "./components/Computed.vue"
import WatchEffects from "./components/WatchEffects.vue"

import {provide,ref,readonly} from "vue"

export default {
  name: 'App',
  components: {
    // Setup,
    // Reactive
    // Provider
    // Computed
    WatchEffects
  },
  setup(){
    let title=ref("1907C");
    let count=ref(10);

    provide("title",readonly(title))  
    provide("count",readonly(count))  
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
